﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace QUANLYNHASACH
{

    [TestFixture]
    public class testSACH
    {
        [Test]
        public void ThemSach_test()
        {
            bool result = QUANLYNHASACH.App_code.BLL.SACH_BLL.ThemSach("12", "0001", "0001", "Connan", "Connan", "Phan Thị", 43, 3, "sách", 12, 8000, 20);
            Assert.AreEqual(result, true);
        }

        [Test]
        public void SuaSach_test()
        {
            bool result = QUANLYNHASACH.App_code.BLL.SACH_BLL.suasach("12", "0001", "0001", "Connan_new", "Connan_new", "Phan Thị new", 42, 3, "sach", 12, 8000, 20);

            Assert.AreEqual(result, true);
        }


        [Test]
        public void XoaSach_test()
        {
            bool result = QUANLYNHASACH.App_code.BLL.SACH_BLL.xoasach("12");
            Assert.AreEqual(result, true);
        }

    }
}
